<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="/resource/css/index_work.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/resource/js/jquery.validate.js"></script>
</head>
<body>
<div align="center">
	<form>
		关键字:<input type="text" name="cname" value="${cname}">
		描述:<input type="text" name="cmiao" value="${cmiao}"><br>
		编号:<input type="text" name="cid" value="${cid}">
		公司名称:<input type="text" name="ctname" value="${ctname}"><br>
		主营产品:<input type="text" name="cpost" value="${cpost}">
		地址:<input type="text" name="caddr" value="${caddr}">
		注册资本(万元):<input type="text" name="cprice" value="${cprice}">
		成立时间<input type="date" name="ctime" value="${ctime}"><br>
		年检日期:<input type="date" name="cdate" value="${cdate}">
		年检状态:<select name="ctype" value="${ctype}">
			<option value="通过">通过
			<option value="未通过">未通过
			<option value="待定">待定
		</select>
		备注:<input type="text" name="cbei" width="100px" height="100px" value="${cbei}">
	</form>
	<button id="sh">审核</button>
</div>
<script type="text/javascript">
	$("#sh").click(function(){
		var data = $("form").serialize();
		$.post("<%=request.getContextPath()%>/ToUpdate",data,function(result){
			if(result > 0){
				alert("审核通过");
				location="<%=request.getContextPath()%>/ToList";
			}
		},"json");
	});
</script>
</body>
</html>